package it.marcomondini.proximitytools;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.SimpleCursorAdapter;

public class ValidateActivity extends ListActivity {
    AccessTableAdapter ata;
    @Override
    public void onCreate(Bundle savedInstanceState) {

	super.onCreate(savedInstanceState);
	setContentView(R.layout.notes_list);
	ata = new AccessTableAdapter(this);


    }
    @Override
    protected void onResume() {
	super.onResume();
	ata.open();
	SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.notes_row, ata.getAll(), new String[] {AccessTableAdapter.KEY_ENTERING,AccessTableAdapter.KEY_TIME},new int[]{R.id.text1,R.id.text2});
	setListAdapter(notes);

    }
    @Override
    protected void onPause() {
	super.onPause();
	ata.close();
    }
    
}
